import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-06-23
 * Time: 15:23
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList<Integer> myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(4,100);
        myArrayList.display();
        System.out.println("==========");
        myArrayList.set(1,1111);
        myArrayList.display();
        System.out.println("----");
        myArrayList.remove(10);
        myArrayList.display();
    }
}
